const db = require('./db')

const Schema = db.Schema

const siteSchema = new Schema({
    url: String,
    siteName: String,
    origin: String,
    channelId: String,
    key: String,
    type: String,
    weixinName: String,
    weiboId: String,
    wxid: String,
    method: { type: String, default: 'POST' },
    contentSelector: String,
    createTime: { type: Date, default: Date.now },
    state: { type: Number, default: 1 }
})

module.exports = siteSchema